#########################################################################
##
## This file is part of the SAMRAI distribution.  For full copyright 
## information, see COPYRIGHT and LICENSE. 
##
## Copyright:     (c) 1997-2019 Lawrence Livermore National Security, LLC
## Description:   makefile for the performance test directory 
##
#########################################################################

SAMRAI	      =	@top_srcdir@
SRCDIR	      =	@srcdir@
SUBDIR        = source/test/performance
OBJECT        = ../../..

default: library

include $(OBJECT)/config/Makefile.config

SUBDIRS = treesearch multiblock TreeCommunication MeshGeneration LinAdv Euler

library:
	for DIR in $(SUBDIRS); do (cd $$DIR && $(MAKE) $@); done
check:
	for DIR in $(SUBDIRS); do (cd $$DIR && $(MAKE) $@); done
check2d:
	for DIR in $(SUBDIRS); do (cd $$DIR && $(MAKE) $@); done
check3d:
	for DIR in $(SUBDIRS); do (cd $$DIR && $(MAKE) $@); done
checkcompile:
	(cd $(OBJECT)/source/test/testlib && $(MAKE) $@)
	for DIR in $(SUBDIRS); do (cd $$DIR && $(MAKE) $@) || exit 1; done
checktest:
	for DIR in $(SUBDIRS); do (cd $$DIR && $(MAKE) $@); done
examples:
	for DIR in $(SUBDIRS); do (cd $$DIR && $(MAKE) $@); done
perf:
	for DIR in $(SUBDIRS); do (cd $$DIR && $(MAKE) $@); done
everything:
	for DIR in $(SUBDIRS); do (cd $$DIR && $(MAKE) $@) || exit 1; done
clean:
	for DIR in $(SUBDIRS); do (cd $$DIR && $(MAKE) $@); done
checkclean:
	for DIR in $(SUBDIRS); do (cd $$DIR && $(MAKE) $@); done
